package com.aimashi.railwaytoolmanagesystem.activity;

import android.os.Bundle;
import android.os.Handler;

import com.aimashi.railwaytoolmanagesystem.R;
import com.aimashi.railwaytoolmanagesystem.utils.ScanToolVoiceUtil;
import com.lidroid.xutils.ViewUtils;

public class Load extends Base {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.load);
		//项目名称语音播报
		ScanToolVoiceUtil.callAlarmAsCustom(Load.this, R.raw.load);
		ViewUtils.inject(this); // 注入view和事件
		
		new Handler().postDelayed(new Runnable() {
			public void run() {
				changeActivity(Load.this, Main.class);
				finish();
			}
		}, 2000); // 等待2秒进主界面
		
	}
}
